home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
apidev
/
int24.arc
/
TEST24.ASM
< prev
next >
Wrap
Assembly Source File
|
1988-01-06
|
554b
|
32 lines
name TestFile
CGroup group Code
assume cs: CGroup
Code segment 'CODE'
jmp Main
extrn InstallINT24: near
PromptMsg db 0Dh, 0Ah,'Unplug cable and press a key.$'
File db 'Z:TEST.TXT',0
Main proc near
call InstallINT24 ;Install my INT 24h handler
mov dx, offset CGroup: PromptMsg
mov ah, 09h
int 21h
mov ah, 01h ;Get a key stroke
int 21h
mov ax, 3d42h ;Open a file that would be on a network drive
mov dx, offset CGroup: File
int 21h
mov ax, 4c01h ;terminate process
int 21h
Main endp
CODE ends
end